package com.qfedu.fmmall.dao;

import com.qfedu.fmmall.common.dto.CountDTO;
import com.qfedu.fmmall.entity.ProductComments;
import com.qfedu.fmmall.general.GeneralDAO;
import com.qfedu.fmmall.vo.ProductCommentsVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductCommentsMapper extends GeneralDAO<ProductComments> {
    List<ProductCommentsVO> selectCommentsByProductId(@Param("productId") String productId
            , @Param("start") int start
            , @Param("limit") int limit);

    List<CountDTO> selectCommentsCountByProductId(@Param("productId") String productId);
}